package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 排班对象 scheduling
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Scheduling extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 医生id */
    @Excel(name = "医生id")
    private Long dockerId;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 余号,格式"时间段id,余号数"，map集合-string互转，每个时间段5票 */
    @Excel(name = "余号,格式时间段id,余号数，map集合-string互转，每个时间段5票")
    private String code;

    /** 班次，0上午/1下午 */
    @Excel(name = "班次，0上午/1下午")
    private Long scheduling;

    /** 挂号类型id */
    @Excel(name = "挂号类型id")
    private Long typeId;

    /** 删除状态，0未，1删除 */
    @Excel(name = "删除状态，0未，1删除")
    private Long del;

    //医生姓名
    private String dName;

    //挂号类型
    private RegistrationType registrationType;




    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dockerId", getDockerId())
            .append("date", getDate())
            .append("code", getCode())
            .append("scheduling", getScheduling())
            .append("typeId", getTypeId())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .toString();
    }
}
